<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title>
<?php echo $this->title['name']?>
</title>
<?php echo $this->headData; ?>
</head>
<body class="default">
	<form action="<?php echo WEBSELF; ?>/site" method="post" name="siteForm">
	<table class="outerframe" align="center" width="75%">
		<tbody>
			<tr>
				<td>
					<table style="width: 100%; background-color: rgb(255, 255, 255); text-align: center;">
						<tbody>
							<tr>
								<td style="padding-top: 20px; text-align: center;">
									<span style="font-weight: bold;"><?php echo C_text::_('Available');?>:</span>									
								</td>
							</tr>
							
							<?php 
								foreach($this->forms AS $key=>$val)
								{
									$encode = $val['created_by'].'-'.$val['no_order'];
									if(!empty($this->lang)) $lang='/lang/'.$this->lang['lang_code'];
									else $lang='';
									$link = SITEURL.'/'.SELF.'/form/'. $encode.'.html'. $lang;
								?>
								<tr>
									<td>
									<a href="<?php echo $link; ?>" target="_blank">
									<?php echo $val['fieldvalue']; ?></a>
									</td>
								</tr>
								<?php
								}
								if(empty($this->forms)):
							?>							
							<tr>
								<td style="padding: 20px 0pt;" align="center">
									<?php echo C_text::_('NoAvailable');?>
								</td>
							</tr>
							<?php endif;?>
							<tr>
								<td style="text-align: center;">
									<?php echo C_text::_('Languages');
										  echo $SYS->lang->languagelist(1,'onchange=document.siteForm.submit();','lang',$this->lang['lang_code']);
									?>							
									
								</td>
							</tr>
						</tbody>
					</table>
				</td>
			</tr>
		</tbody>
	</table>
	</form>
</body>
</html>